#ifndef RTSPSESSION_H
#define RTSPSESSION_H

#include <QObject>
#include <QTcpSocket>
#include <QTimer>

class RtspSession : public QObject
{
    Q_OBJECT
public:
    explicit RtspSession(QTcpSocket *socket, QObject *parent = nullptr);

private:
    void parseClientPort(const QString &rtspHeader);

private slots:
    void readClient();

private:
    QTcpSocket *m_socket;

    //RTP/RTCP 约定端口
    quint16 m_clientport1 = 0;
    quint16 m_clientport2 = 0;
    quint16 m_serverport1 = 0;
    quint16 m_serverport2 = 0;
};


#endif // RTP_SESSION_H
